<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class cargarHabitaciones extends CI_Controller {

    public function __construct() {
        parent::__construct();
        session_start();
        $this->load->model('cuartoM');
    }

    public function index() {
        $json = new stdClass();
        $json->habitaciones = $this->cuartoM->cargarCuartos($_POST["idCategoria"]);
        echo json_encode($json);
    }

}
